home *** CD-ROM | disk | FTP | other *** search
- property spriteNum, pHelpOptionSelect
- global puzzPicFileURL, puzzShading, puzzleImageRect, puzzleTile, puzzpicrotation
-
- on new me, spriteRef
- if the paramCount = 1 then
- nothing()
- else
- if the paramCount = 2 then
- spriteNum = spriteRef.spriteNum
- end if
- end if
- return me
- end
-
- on mouseWithin me
- pHelpOptionSelect = 0
- if inside(theMouseLoc(), the rect of sprite 250) then
- pHelpOptionSelect = ((the mouseV - 23) / 16) + 1
- case pHelpOptionSelect of
- 1:
- set the locV of sprite 251 to ((the mouseV - 23) / 16 * 16) + 29
- 3:
- set the locV of sprite 251 to ((the mouseV - 23) / 16 * 16) + 29
- 4:
- set the locV of sprite 251 to ((the mouseV - 23) / 16 * 16) + 29
- 5:
- set the locV of sprite 251 to ((the mouseV - 23) / 16 * 16) + 29
- 6:
- set the locV of sprite 251 to ((the mouseV - 23) / 16 * 16) + 29
- 7:
- set the locV of sprite 251 to ((the mouseV - 23) / 16 * 16) + 29
- otherwise:
- pHelpOptionSelect = 0
- set the locV of sprite 251 to -9999
- end case
- updateStage()
- else
- set the locV of sprite 251 to -9999
- pHelpOptionSelect = 0
- updateStage()
- end if
- end
-
- on mouseUp me
- set the loc of sprite 250 to point(-9999, -9999)
- set the locV of sprite 251 to -9999
- updateStage()
- if pHelpOptionSelect > 0 then
- scrollTo = 0
- case pHelpOptionSelect of
- 1:
- scrollTo = 0
- 3:
- scrollTo = 20
- 4:
- scrollTo = 104
- 5:
- scrollTo = 632
- 6:
- scrollTo = 728
- 7:
- scrollTo = 788
- end case
- scrollTo = scrollTo * the textHeight of member "help field" / 12
- member("help field").scrollTop = scrollTo
- helpDialog()
- end if
- end
-
- on mouseLeave me
- set the mouseDownScript to "clearMenu(me)"
- pHelpOptionSelect = 0
- set the locV of sprite 251 to -9999
- updateStage()
- end
-
- on mouseEnter me
- set the mouseDownScript to EMPTY
- end
-